const Foo = () => import('./Foo.vue')
// 按需加载
const router = new VueRouter({
  routes:[
    { path: '/foo', component: Foo }
  ]
})